/**
 * 
 */
package webreg.model.exceptions;

/** Exception that is thrown when the competition name is empty
 * 
 * @author STKNOLL
 */
public class EmptyNameException extends WebRegModelException {

	/**
	 * Default serial id
	 */
	private static final long serialVersionUID = 1L;
	private String mWhere = "";
	
	/**
	 * 
	 */
	public EmptyNameException() {
		mWhere = "";
	}

	public EmptyNameException(String inWhere) {
		mWhere = inWhere;
	}
	
	@Override
	public String getMessage() {
		return "The given name in " + mWhere + " is not valid.";
	}

}
